home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
GIPV201.ARJ
/
INSTALL.DOC
< prev
next >
Wrap
Text File
|
1992-01-29
|
7KB
|
147 lines
Generic Install Program
ver 2.0
by
Kenneth E. Sandquist Jr.
---------------------------
Generic Install Program (GIP) is a 'programmers tool' to allow you to
install your software packages with a professional look! After all, isn't
the installation of your package the first thing people see?
GIP has several nice features that can alleviate the hassle and extra
code in you programs. It allows for minimum memory amount checking, available
disk drive space, 32-bit CRC checking, and existing file and directory checks!
All this is done in a nice, professional 3-D type screen.
To use GIP, a file is required (INSTALL.LST) to tell GIP what files to
install, where to install them, and file CRC's and sizes. There are two ways
to create this file:
1) Use the utility provided as part of this package called CREATE.EXE.
To use CREATE, copy ALL files that you want to include in the install
to a sub-directory of its own (a temporary sub-directory is fine...we just
need to separate these files from ones we don't need!) and then type:
C:\TEMP> CREATE
That's it! CREATE will then proceed to gather up the files in the
directory. Then, CREATE will ask you three questions:
a) Enter the install directory name for this list:
Enter the name of the directory you would like the user to install
your package in.
b) Enter main executable name for this list:
Type in the name that starts your application (extension is optional!).
Hit return and the default name is "NONE".
c) Enter minimum amount of memory required:
Hitting return will default this value to 384,000 bytes. The number
you enter here should be the LEAST amount of memory your software will
require.
Then CREATE will calculate the CRC values for each file it found and
record them, along with the file sizes, in the list.
2) Use your favorite ASCII text editor and create a file called
INSTALL.LST and record the information as follows:
LINE
----
1 | XXXXXXXX.XXX <--- Directory name here
2 | XXXXXXXX.XXX <--- Main executable name here
3 | 012345 <--- Minimum required memory
*don't 1 File name 14 15 File size 27 28 CRC 36
*include [..............] [.............] [.........]
4 | XXXXXXXX.XXX 0123456789012 0A1B2C3D4
Repeat line four for the number of files you want to install.
To calculate the CRC value for a file type:
C:\TEMP> CREATE -C XXXXXXXX.XXX
CREATE will then supply you with the CRC value of that file!
As you can probably tell, the way to go is to let CREATE do all of the work!
CREATE also has two more command line switches:
1) -U to update the files in the list with new CRC's if the files have
been changed. This is useful if you have just updated your program and
don't want to have to go through the entire CREATE process...CREATE will
update CRC's where needed and quit!
2) -O to override the built in 'skip' of including the files:
INSTALL.EXE
CREATE.EXE
Basically, when CREATE runs without this option, it creates a list file
with these two files EXCLUDED from the list! This is done to keep from
installing the no-longer-needed INSTALL programs. However, using this
switch allows the INSTALL program to install itself along with your
software.
Once the list file is created, you're ready to install! Just copy all of
the files in the temporary directory we discussed earlier to a floppy and
you're ready!
Have the user type INSTALL at the DOS prompt and INSTALL will take over
with little or no help from the user. INSTALL will ask the user to enter the
drive to install onto (default = C:). Then it will ask them to enter the
directory name where they would like to install your package (your preferred
directory name is shown as the default...they can either hit ENTER or type in
their own directory!). If the specified directory already exists on the
drive, the installer is warned that it exists and is prompted to either quit
or continue to use that directory. The next, and in most cases the last,
step is to hit any key to start the install. That's it! If INSTALL comes
across a filename that already exists in the path specified, the user is
prompted to overwrite the file. They can enter 1 of 3 answers:
1) Y - yes, I want to overwrite this file!
2) N - no, skip this file and go on!
3) A - yes, I want to overwrite this file and all others that may exist!
At any time during the install, the user can hit the ESC key to stop the
program and prompt them to abort.
ERRORS:
There is only one message that, under normal circumstances, should appear
in the MESSAGES window and that is XXXXXXXX.XXX Bad CRC! This is not a
serious error; However, it is advisable to have the installer inform you of
this error and what file it occurred on. What this error means is that the
file in error no longer matches the CRC value in the INSTALL.LST file. There
could be several reasons for this: bad disk, old CRC value in the list, or the
file has been altered. It's up to you, the programmer, to decide what the
user should do when this error occurs...INSTALL will still install the file
with just a warning to the user!
-----------------------------------------------------------------------------
Who is Vision Software?
Vision Software was created by the author Kenneth E. Sandquist Jr.
3187A Aqueduct Drive
Lexington, KY 40517
-----------------------------------------------------------------------------
Disclaimer
INSTALL is distributed as-is. The author disclaims all
warranties, expressed or implied. The author will assume
no liability for damages either from the direct use of this
product or as a consequence of the use of this product.
-----------------------------------------------------------------------------
Register?
Although any contribution would be appreciated (hint! hint!), If you
find this program of some use, pass it along to a friend...Right now I'm
looking for recognition not, so much, money. HOWEVER...don't be shy with the
ol' checkbook !!! If you do make a contribution, you will be given the next
release along with any other utilities I come up with between now and then!
Not to mention you'll get, free of charge, a clear conscience!